package me.tuyou.orm;

import me.tuyou.orm.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description
 * @Author tuyou_cd
 * @Date 2020/6/4 15:49
 */
public class ORMApp {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext("me.tuyou.orm");
        UserService userService = applicationContext.getBean(UserService.class);
        userService.selectAll();
    }
}
